﻿namespace NMA.Infrastructure.NHibernate.CriteriaExpression.Category.SearchCategory
{
    using NMA.Domain.Model.Contract;

    /// <summary>
    /// Refereces from http://en.wikipedia.org/wiki/Chain-of-responsibility_pattern
    /// </summary>
    public abstract class SearchCategoryTypeFinder
    {
        protected SearchCategoryTypeFinder Finder { get; private set; }

        public SearchCategoryTypeFinder SetFinder(SearchCategoryTypeFinder finder)
        {
            Finder = finder;
            return this;
        }

        public abstract SearchCategoryCriteriaType GetSearchCategoryType(CategorySearchCriteria model);
    }
}